<script>
export default {
  data () {
    return {
      visible: true,
      tongueImgs: [],
      title: ''
    }
  },
  methods: {
    initImg (imgs, title) {
      console.log(imgs)
      this.visible = true
      this.tongueImgs = imgs.split(';')
      this.title = title
    }
  }
}
</script>

<template>
  <el-dialog
    :title=title
    :close-on-click-modal="false"
    :visible.sync="visible">
    <img
      style="width: 300px"
      v-for="img in tongueImgs" :key="img" :src="img"/>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">关闭</el-button>
    </span>
  </el-dialog>
</template>

<style scoped lang="scss">

</style>
